import { useStageStore } from '@/store/stage';
import { getResPath } from '@/utils/cimup';

export default (layer: any) => {
  const { positions } = layer;
  const position = positions?.flat();
  return {
    data: {
      emitterStr: 'CircleWave',
      speed: 10,
      semiMinorAxis: 300,
      semiMajorAxis: 300,
      circleCount: 3,
      color: '#ff0000',
      offset: [0, 0, 0],
      longitude: position?.[0],
      latitude: position?.[1],
      height: position?.[2],
      show: true,
    },
  };
};
